<?php

    mysql_connect("localhost","root","123456");
    mysql_select_db("blog");
    $sql=mysql_query("SELECT * FROM `android` ORDER BY `category` ASC");
    while($row=mysql_fetch_assoc($sql))
    $output[]=$row;
    print(json_encode($output));
    mysql_close();

?>